/**
 * 考试应用页面样式
 * 移动端适配的考试管理平台样式
 */

/* ===== CSS变量定义 ===== */
:root {
    --exam-primary: #1e88e5;
    --exam-secondary: #42a5f5;
    --exam-success: #10b981;
    --exam-warning: #f59e0b;
    --exam-danger: #ef4444;
    --exam-bg: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
    --exam-card-bg: #ffffff;
    --exam-border: #e2e8f0;
    --exam-text: #334155;
    --exam-text-secondary: #64748b;
    --exam-shadow: 0 4px 12px rgba(30, 136, 229, 0.08);
    --exam-shadow-hover: 0 8px 24px rgba(30, 136, 229, 0.15);
    --exam-shadow-strong: 0 10px 40px rgba(30, 136, 229, 0.12);
    --exam-radius: 12px;
    --exam-radius-large: 16px;
    --exam-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --exam-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== 基础样式 ===== */
body {
    background: var(--exam-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--exam-text);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(30, 136, 229, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(66, 165, 245, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 隐藏默认布局元素 */
.navbar, .sidebar, .main-header, .main-sidebar, 
.content-header, .main-footer {
    display: none !important;
}

.content-wrapper, .main-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== 应用容器 ===== */
.exam-app-container {
    min-height: 100vh;
    background: var(--exam-bg);
}

/* ===== 租户信息条 ===== */
.tenant-info-bar {
    background: linear-gradient(135deg, var(--exam-primary), var(--exam-secondary));
    color: white;
    padding: 8px 16px;
    font-size: 13px;
    box-shadow: var(--exam-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    animation: slideDown 0.6s var(--exam-bounce);
}

.tenant-info-content {
    width: 100%;
    gap: 16px !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tenant-name {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.tenant-name i {
    margin-right: 6px;
}

.tenant-logo {
    height: 18px;
    width: auto;
    border-radius: 3px;
}

.tenant-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-time {
    font-size: 12px;
    opacity: 0.9;
}

.current-time i {
    margin-right: 4px;
}

/* ===== 退出登录容器 ===== */
.logout-container {
    position: relative;
}

.logout-btn {
    min-width: 60px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--exam-transition);
    font-size: 13px;
    color: white;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    gap: 4px;
    padding: 0 8px;
    position: relative;
    overflow: hidden;
}

.logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--exam-transition);
}

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 1), rgba(220, 38, 38, 1));
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.logout-btn:hover::before {
    left: 100%;
    animation: shimmerLogout 0.6s ease-in-out;
}

.logout-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.logout-icon {
    font-size: 14px;
    transition: var(--exam-transition);
}

.logout-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.logout-btn:hover .logout-icon {
    transform: rotate(-10deg) scale(1.1);
}

.logout-btn.logging-out {
    pointer-events: none;
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.9), rgba(107, 114, 128, 0.9));
    animation: logoutPulse 1.5s ease-in-out infinite;
    cursor: not-allowed;
}

.logout-btn.logging-out .logout-icon {
    animation: spin 1s linear infinite;
}

@keyframes shimmerLogout {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes logoutPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(156, 163, 175, 0.3);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(156, 163, 175, 0.4);
    }
}

/* ===== 退出登录对话框样式 ===== */
.logout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.logout-overlay.show {
    opacity: 1;
    visibility: visible;
}

.logout-dialog {
    background: var(--exam-card-bg);
    border-radius: var(--exam-radius-large);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    margin: 20px;
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
}

.logout-dialog.show {
    transform: scale(1) translateY(0);
}

.logout-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--exam-danger), #dc2626, var(--exam-danger));
}

.logout-dialog-header {
    padding: 24px 24px 16px 24px;
    text-align: center;
    border-bottom: 1px solid var(--exam-border);
    background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.logout-dialog-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--exam-danger), #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.logout-dialog-header h3 {
    margin: 0;
    color: var(--exam-text);
    font-size: 20px;
    font-weight: 600;
}

.logout-dialog-body {
    padding: 20px 24px;
    text-align: center;
}

.logout-dialog-body p {
    margin: 0 0 12px 0;
    color: var(--exam-text);
    font-size: 16px;
    line-height: 1.5;
}

.logout-dialog-note {
    font-size: 14px !important;
    color: var(--exam-text-secondary) !important;
    margin-bottom: 0 !important;
}

.logout-dialog-actions {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.logout-cancel-btn,
.logout-confirm-btn {
    padding: 12px 24px;
    border-radius: var(--exam-radius);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--exam-transition);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    justify-content: center;
}

.logout-cancel-btn {
    background: #f8fafc;
    color: var(--exam-text);
    border: 2px solid var(--exam-border);
}

.logout-cancel-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.logout-confirm-btn {
    background: linear-gradient(135deg, var(--exam-danger), #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.logout-confirm-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.logout-cancel-btn:active,
.logout-confirm-btn:active {
    transform: translateY(0);
}

/* ===== 考生信息卡片 ===== */
.student-info-card {
    background: var(--exam-card-bg);
    margin: 12px 16px;
    border-radius: var(--exam-radius-large);
    box-shadow: var(--exam-shadow);
    padding: 24px;
    border-top: 3px solid var(--exam-success);
    position: relative;
    overflow: hidden;
    transition: var(--exam-transition);
    animation: fadeInUp 0.8s var(--exam-bounce) 0.2s both;
    border: 1px solid rgba(30, 136, 229, 0.08);
}

/* 卡片标题 */
.card-header {
    font-size: 16px;
    font-weight: 600;
    color: var(--exam-text);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(30, 136, 229, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--exam-primary), var(--exam-secondary));
    border-radius: 1px;
}

.card-header i {
    color: var(--exam-primary);
    font-size: 18px;
}

.student-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--exam-success), var(--exam-primary), var(--exam-secondary));
    opacity: 1;
}

.student-info-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(30, 136, 229, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.student-info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--exam-shadow-strong);
}

/* 头像区域（居中） */
.student-avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

/* 信息网格布局 - 使用flex实现左右对称 */
.student-info-grid {
    display: flex !important;
    gap: 0 !important;
    position: relative;
    z-index: 1;
}

.student-info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* 左列 */
.student-info-left-column {
    padding-right: 20px;
    border-right: 1px solid rgba(30, 136, 229, 0.15);
}

/* 右列 */
.student-info-right-column {
    padding-left: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .student-info-grid {
        flex-direction: column !important;
    }
    
    .student-info-left-column {
        padding-right: 0;
        border-right: none;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(30, 136, 229, 0.15);
    }
    
    .student-info-right-column {
        padding-left: 0;
        padding-top: 16px;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.student-avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #64b5f6, var(--exam-primary)) !important;
    color: white !important;
    font-size: 32px !important;
    font-weight: bold !important;
    flex-shrink: 0;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.25), 0 0 0 4px rgba(30, 136, 229, 0.1);
    transition: var(--exam-transition);
    position: relative;
    overflow: hidden;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.student-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: var(--exam-transition);
    opacity: 0;
}

.student-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.student-avatar:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.student-info-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-radius: 6px;
    transition: var(--exam-transition);
    position: relative;
    min-height: 32px;
}

.student-info-item:hover {
    background: rgba(30, 136, 229, 0.04);
    padding-left: 10px;
    padding-right: 10px;
    transform: translateX(2px);
}

/* 信息项图标 */
.info-icon {
    font-size: 16px;
    margin-right: 8px;
    color: var(--exam-primary);
    opacity: 0.7;
    transition: var(--exam-transition);
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.student-info-item:hover .info-icon {
    opacity: 1;
    transform: scale(1.1);
}

.info-label {
    font-size: 14px;
    color: var(--exam-text-secondary);
    min-width: 65px;
    font-weight: 500;
    position: relative;
    flex-shrink: 0;
}

.info-label::after {
    content: ':';
    margin-left: 2px;
    color: var(--exam-text-secondary);
}

.info-value {
    font-size: 15px;
    color: var(--exam-text);
    font-weight: 600;
    flex: 1;
    transition: var(--exam-transition);
    word-break: break-all;
}

.student-info-item:hover .info-value {
    color: var(--exam-primary);
}

/* 准考证号特殊样式 */
.exam-number-link {
    color: var(--exam-primary);
    cursor: pointer;
    text-decoration: none;
    transition: var(--exam-transition);
}

.exam-number-link:hover {
    color: var(--exam-secondary);
    text-decoration: underline;
}

/* 考生组样式 */
.student-groups {
    border-top: 1px solid rgba(30, 136, 229, 0.1);
    padding-top: 12px !important;
    margin-top: 8px;
}

.student-groups-list {
    background: linear-gradient(90deg, var(--exam-success), var(--exam-primary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}

/* ===== 返回主页按钮 ===== */
.back-to-home-section {
    margin: 12px 16px;
    animation: fadeInUp 0.6s var(--exam-bounce) 0.1s both;
}

.back-to-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--exam-card-bg);
    border-radius: var(--exam-radius);
    box-shadow: var(--exam-shadow);
    cursor: pointer;
    transition: var(--exam-transition);
    color: var(--exam-text);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--exam-border);
}

.back-to-home-btn:hover {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.05), rgba(30, 136, 229, 0.02));
    border-color: var(--exam-primary);
    transform: translateX(-2px);
    box-shadow: var(--exam-shadow-hover);
}

.back-to-home-btn i {
    font-size: 14px;
    transition: var(--exam-transition);
}

.back-to-home-btn:hover i {
    transform: translateX(-2px);
}

/* ===== 当前考试面板 ===== */
.current-exams-section {
    background: var(--exam-card-bg);
    margin: 20px 16px;
    border-radius: var(--exam-radius-large);
    box-shadow: 0 8px 24px rgba(30, 136, 229, 0.15), 0 0 0 1px rgba(30, 136, 229, 0.1);
    overflow: hidden;
    transition: var(--exam-transition);
    animation: fadeInUp 0.8s var(--exam-bounce) 0.3s both;
    border: 2px solid rgba(16, 185, 129, 0.2);
    position: relative;
}

.current-exams-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--exam-success), #16a085, var(--exam-success));
    z-index: 1;
}

.current-exams-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 136, 229, 0.2), 0 0 0 1px rgba(30, 136, 229, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

.current-exams-header {
    background: linear-gradient(135deg, var(--exam-success), #16a085);
    color: white;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 2;
}

.current-exams-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: headerShine 3s ease-in-out infinite;
}

.current-exams-header i {
    margin-right: 8px;
    animation: pulse 2s ease-in-out infinite;
}

.current-exams-content {
    padding: 0;
}

.exam-item {
    padding: 28px;
    border-bottom: 1px solid var(--exam-border);
    transition: var(--exam-transition);
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.02), transparent);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exam-item .cxd-Flex {
    align-items: flex-start !important;
}

.exam-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--exam-success), var(--exam-secondary));
    opacity: 0;
    transition: var(--exam-transition);
}

.exam-item:last-child {
    border-bottom: none;
}

.exam-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.exam-item:hover::before {
    opacity: 1;
}

.exam-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--exam-text);
    margin-bottom: 12px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.exam-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}

.exam-time, .exam-duration, .exam-score {
    font-size: 13px;
    color: var(--exam-text-secondary);
    display: flex;
    align-items: center;
}

.exam-time i, .exam-duration i, .exam-score i {
    margin-right: 4px;
    width: 12px;
}

.exam-description {
    font-size: 14px;
    color: var(--exam-text-secondary);
    line-height: 1.5;
    margin-top: 8px;
}

.exam-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    min-width: 160px;
    flex-shrink: 0;
}

.exam-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.exam-status-badge i {
    font-size: 14px;
}

.status-available {
    background: linear-gradient(135deg, var(--exam-success), #16a085);
    color: white;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 3px 15px rgba(16, 185, 129, 0.6);
    }
}

.status-progress {
    background: linear-gradient(135deg, var(--exam-warning), #f39c12);
    color: white;
}

.status-ended {
    background: #e2e8f0;
    color: var(--exam-text-secondary);
}

.status-unknown {
    background: #f1f5f9;
    color: var(--exam-text-secondary);
    border: 1px solid var(--exam-border);
}

.exam-start-btn {
    background: linear-gradient(135deg, var(--exam-primary), var(--exam-secondary));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.4), 0 2px 8px rgba(30, 136, 229, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: none;
}

.exam-start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.exam-start-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(30, 136, 229, 0.5), 0 4px 12px rgba(30, 136, 229, 0.4);
    background: linear-gradient(135deg, var(--exam-secondary), var(--exam-primary));
}

.exam-start-btn:hover:not(:disabled)::before {
    left: 100%;
}

.exam-start-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.4);
}

.exam-start-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.exam-start-btn span {
    font-weight: 700;
}

.exam-start-btn:hover:not(:disabled) i {
    transform: scale(1.2) rotate(5deg);
}

.exam-start-btn:disabled {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.3);
    opacity: 0.6;
}

/* ===== 空状态优化 ===== */
.exam-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--exam-text-secondary);
}

.empty-illustration {
    font-size: 80px;
    color: #cbd5e1;
    margin-bottom: 20px;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--exam-text);
    margin-bottom: 8px;
    margin-top: 0;
}

.empty-description {
    font-size: 14px;
    color: var(--exam-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-action {
    padding: 12px 24px;
    background: var(--exam-primary);
    color: white;
    border: none;
    border-radius: var(--exam-radius);
    cursor: pointer;
    transition: var(--exam-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.empty-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 136, 229, 0.4);
    background: var(--exam-secondary);
}

.empty-action:active {
    transform: translateY(0);
}

.empty-action i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.empty-action:hover i {
    transform: rotate(180deg);
}

/* ===== 公告通知区域 ===== */
.announcement-section {
    margin: 12px 16px;
    background: var(--exam-card-bg);
    border-radius: var(--exam-radius-large);
    box-shadow: var(--exam-shadow);
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.8s var(--exam-bounce) 0.4s both;
    transition: var(--exam-transition);
}

.announcement-section:hover {
    transform: translateY(-1px);
    box-shadow: var(--exam-shadow-hover);
}

.announcement-header {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.announcement-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: headerShine 3s ease-in-out infinite;
}

.announcement-header i {
    margin-right: 8px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes headerShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.announcement-content {
    max-height: 300px;
    overflow-y: auto;
}

.announcement-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--exam-border);
    transition: var(--exam-transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.announcement-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--exam-primary), transparent);
    transition: var(--exam-transition);
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item:hover {
    background-color: rgba(30, 136, 229, 0.02);
    transform: translateX(4px);
}

.announcement-item:hover::before {
    width: 4px;
}

.announcement-title {
    font-weight: 600;
    color: var(--exam-text);
    margin-bottom: 4px;
    font-size: 14px;
}

.announcement-content-text {
    color: var(--exam-text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.announcement-time {
    font-size: 11px;
    color: #9ca3af;
    margin-left: 8px;
    flex-shrink: 0;
}

.announcement-empty {
    padding: 24px;
    text-align: center;
    color: var(--exam-text-secondary);
}

.announcement-empty i {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
    color: #d1d5db;
}

/* ===== 导航菜单 ===== */
.nav-menu-section {
    margin: 12px 16px;
    animation: fadeInUp 0.8s var(--exam-bounce) 0.6s both;
}

.nav-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .nav-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nav-menu-item {
    background: var(--exam-card-bg);
    border-radius: var(--exam-radius-large);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--exam-shadow);
    transition: var(--exam-transition);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: var(--exam-transition);
}

.nav-menu-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    opacity: 0.1;
    transition: var(--exam-transition);
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.nav-menu-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--exam-shadow-strong);
    border-color: currentColor;
}

.nav-menu-item:hover::before {
    opacity: 1;
}

.nav-menu-item:hover::after {
    width: 100px;
    height: 100px;
    opacity: 0.05;
}

.nav-menu-item:active {
    transform: translateY(-2px) scale(1.01);
}

.nav-menu-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    transition: var(--exam-transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-menu-item:hover .nav-menu-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.nav-menu-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--exam-text);
    transition: var(--exam-transition);
    position: relative;
}

.nav-menu-item:hover .nav-menu-text {
    transform: translateY(-2px);
    font-weight: 700;
}

/* 导航菜单颜色主题 */
.nav-practice {
    color: var(--exam-success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.01));
}

.nav-exam {
    color: var(--exam-primary);
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.05), rgba(30, 136, 229, 0.01));
}

.nav-my-exams {
    color: var(--exam-warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(245, 158, 11, 0.01));
}

.nav-my-practice {
    color: var(--exam-danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.01));
}

/* 为每个菜单项添加特定的悬停效果 */
.nav-practice:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.02));
    border-color: var(--exam-success);
}

.nav-exam:hover {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(30, 136, 229, 0.02));
    border-color: var(--exam-primary);
}

.nav-my-exams:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.02));
    border-color: var(--exam-warning);
}

.nav-my-practice:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.02));
    border-color: var(--exam-danger);
}

.nav-wrong-questions {
    color: #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(220, 38, 38, 0.01));
}

.nav-wrong-questions:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.02));
    border-color: #dc2626;
}

.nav-profile {
    color: #7c3aed;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(124, 58, 237, 0.01));
}

.nav-profile:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.02));
    border-color: #7c3aed;
}

/* ===== 加载状态 ===== */
.exam-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.exam-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--exam-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.exam-loading-text {
    color: var(--exam-text-secondary);
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== 错误页面样式 ===== */
.exam-error {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--exam-bg);
    padding: 20px;
}

.error-content {
    background: var(--exam-card-bg);
    border-radius: var(--exam-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--exam-shadow);
    max-width: 500px;
    width: 100%;
}

.error-icon {
    font-size: 48px;
    color: var(--exam-danger);
    margin-bottom: 20px;
}

.error-content h3 {
    color: var(--exam-text);
    margin-bottom: 16px;
    font-size: 20px;
}

.error-content p {
    color: var(--exam-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.error-actions .btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--exam-transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.error-actions .btn-primary {
    background: var(--exam-primary);
    color: white;
}

.error-actions .btn-primary:hover {
    background: var(--exam-secondary);
    transform: translateY(-1px);
}

.error-actions .btn-secondary {
    background: #f1f5f9;
    color: var(--exam-text);
    border: 1px solid var(--exam-border);
}

.error-actions .btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.error-tips {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    text-align: left;
    font-size: 13px;
    color: var(--exam-text-secondary);
}

.error-tips p {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--exam-text);
}

.error-tips ul {
    margin: 0;
    padding-left: 20px;
}

.error-tips li {
    margin-bottom: 4px;
}

/* 错误页面移动端适配 */
@media (max-width: 576px) {
    .exam-error {
        padding: 16px;
    }
    
    .error-content {
        padding: 30px 20px;
    }
    
    .error-icon {
        font-size: 40px;
    }
    
    .error-content h3 {
        font-size: 18px;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* ===== 响应式设计 ===== */

/* 平板设备适配 */
@media (max-width: 768px) {
    .student-info-card {
        padding: 14px;
    }
    
    .nav-menu-item {
        padding: 18px 16px;
    }
    
    .nav-menu-icon {
        font-size: 28px;
    }
}

/* 手机设备适配 */
@media (max-width: 576px) {
    .tenant-info-bar {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .tenant-info-content {
        gap: 12px !important;
        flex-wrap: wrap;
    }
    
    .tenant-name {
        flex: 1;
        min-width: 120px;
    }
    
    .logout-btn {
        min-width: 50px;
        height: 28px;
        font-size: 11px;
        padding: 0 6px;
    }
    
    .logout-text {
        font-size: 10px;
    }
    
    .logout-icon {
        font-size: 12px;
    }
    
    .tenant-logo {
        height: 16px;
    }
    
    .student-info-card {
        margin: 12px 8px;
        padding: 20px 16px;
    }
    
    .card-header {
        font-size: 15px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .card-header i {
        font-size: 16px;
    }
    
    .student-avatar-section {
        margin-bottom: 20px;
    }
    
    .student-avatar {
        width: 70px !important;
        height: 70px !important;
        font-size: 28px !important;
    }
    
    .info-icon {
        font-size: 15px;
        min-width: 18px;
        margin-right: 6px;
    }
    
    .info-label {
        min-width: 70px;
        font-size: 13px;
        font-weight: 500;
    }
    
    .info-value {
        font-size: 14px;
        font-weight: 500;
        text-align: left;
    }
    
    .student-info-item {
        width: 100%;
        justify-content: flex-start;
    }
    
    .student-groups {
        padding-top: 8px !important;
        margin-top: 6px;
    }
    
    .student-groups-list {
        font-size: 12px !important;
        line-height: 1.4;
        word-break: break-all;
    }
    
        .current-exams-section {
        margin: 12px 8px;
    }
    
    .exam-item {
        padding: 16px 12px;
        display: block;
    }
    
    .exam-item .flex {
        display: block;
    }
    
    .exam-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
    }
    
    .exam-info {
        margin-bottom: 12px;
    }
    
    .exam-info .exam-time,
    .exam-info .exam-duration,
    .exam-info .exam-score {
        display: block;
        margin-bottom: 4px;
        font-size: 13px;
    }
    
    .exam-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 12px;
    }
    
    .exam-status-badge {
        padding: 4px 10px;
        font-size: 11px;
        min-width: 50px;
        order: 1;
    }
    
    .current-exams-section {
        margin: 16px 8px;
        border-width: 2px;
    }
    
    .current-exams-header {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .exam-item {
        padding: 20px 16px;
    }
    
    .exam-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .exam-actions {
        width: 100%;
        align-items: stretch;
        margin-top: 16px;
    }
    
    .exam-start-btn {
        min-width: 100%;
        padding: 16px 24px;
        font-size: 16px;
        order: 1;
        flex: 1;
        max-width: 100%;
        min-height: 52px;
        box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
    }
    
    .exam-status-badge {
        order: 2;
        align-self: center;
        margin-top: 12px;
    }
    
    .empty-illustration {
        font-size: 60px;
    }
    
    .empty-title {
        font-size: 16px;
    }
    
    .empty-description {
        font-size: 13px;
        padding: 0 16px;
    }
    
    .empty-action {
        padding: 10px 20px;
        font-size: 13px;
    }

    .announcement-section {
        margin: 12px 8px;
    }
    
    .announcement-header {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .announcement-item {
        padding: 12px;
    }
    
    .announcement-item .flex {
        display: block;
    }
    
    .announcement-title {
        font-size: 13px;
        margin-bottom: 6px;
        font-weight: 600;
    }
    
    .announcement-content-text {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    
    .announcement-time {
        font-size: 11px;
        text-align: right;
        display: block;
        margin: 0;
    }

    .nav-menu-section {
        margin: 20px 8px 24px 8px;
        background: transparent;
        padding-top: 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
    }
    
    .nav-menu-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 20%;
        right: 20%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    }
    
    .nav-menu-grid {
        gap: 10px;
        grid-template-columns: repeat(3, 1fr);
        padding: 0;
    }
    
    .nav-menu-item {
        padding: 18px 12px;
        min-height: 90px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: var(--exam-card-bg);
        border-radius: 12px;
        box-shadow: var(--exam-shadow);
        transition: all 0.3s ease;
    }
    
    .nav-menu-item:active {
        transform: scale(0.95);
        box-shadow: var(--exam-shadow-hover);
    }
    
    .nav-menu-icon {
        font-size: 28px;
        margin-bottom: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-menu-text {
        font-size: 12px;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
        margin: 0;
    }
    
    /* 优化考试描述在移动端的显示 */
    .exam-description {
        font-size: 12px;
        line-height: 1.4;
        margin-top: 6px;
        color: var(--exam-text-secondary);
    }
    
    /* 优化移动端的触摸目标大小 */
    .exam-start-btn {
        min-height: 44px; /* iOS推荐的最小触摸目标 */
    }
    
    .logout-btn {
        min-height: 32px;
        min-width: 50px;
    }
    
    /* 移动端退出登录对话框适配 */
    .logout-dialog {
        max-width: 320px;
        width: 95%;
        margin: 10px;
    }
    
    .logout-dialog-header {
        padding: 20px 16px 12px 16px;
    }
    
    .logout-dialog-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .logout-dialog-header h3 {
        font-size: 18px;
    }
    
    .logout-dialog-body {
        padding: 16px;
    }
    
    .logout-dialog-body p {
        font-size: 15px;
    }
    
    .logout-dialog-note {
        font-size: 13px !important;
    }
    
    .logout-dialog-actions {
        padding: 12px 16px 20px 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .logout-cancel-btn,
    .logout-confirm-btn {
        width: 100%;
        min-height: 44px;
        font-size: 15px;
        padding: 12px 16px;
    }
    
    /* 移动端滚动优化 */
    .announcement-content {
        -webkit-overflow-scrolling: touch;
        max-height: 280px;
    }
    
    /* 移动端页面整体优化 */
    .exam-app-page {
        padding-bottom: 20px;
    }
    
    /* 移动端导航菜单颜色优化 */
    .nav-practice {
        background: var(--exam-card-bg);
        color: #16a085;
        border: 1px solid rgba(22, 160, 133, 0.15);
        box-shadow: 0 2px 8px rgba(22, 160, 133, 0.1);
    }
    
    .nav-practice .nav-menu-icon {
        color: #16a085;
    }

    .nav-exam {
        background: var(--exam-card-bg);
        color: var(--exam-primary);
        border: 1px solid rgba(30, 136, 229, 0.15);
        box-shadow: 0 2px 8px rgba(30, 136, 229, 0.1);
    }
    
    .nav-exam .nav-menu-icon {
        color: var(--exam-primary);
    }

    .nav-my-exams {
        background: var(--exam-card-bg);
        color: #f39c12;
        border: 1px solid rgba(243, 156, 18, 0.15);
        box-shadow: 0 2px 8px rgba(243, 156, 18, 0.1);
    }
    
    .nav-my-exams .nav-menu-icon {
        color: #f39c12;
    }

    .nav-my-practice {
        background: var(--exam-card-bg);
        color: #e74c3c;
        border: 1px solid rgba(231, 76, 60, 0.15);
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
    }
    
    .nav-my-practice .nav-menu-icon {
        color: #e74c3c;
    }

    .nav-wrong-questions {
        background: var(--exam-card-bg);
        color: #dc2626;
        border: 1px solid rgba(220, 38, 38, 0.15);
        box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
    }
    
    .nav-wrong-questions .nav-menu-icon {
        color: #dc2626;
    }

    .nav-profile {
        background: var(--exam-card-bg);
        color: #7c3aed;
        border: 1px solid rgba(124, 58, 237, 0.15);
        box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
    }
    
    .nav-profile .nav-menu-icon {
        color: #7c3aed;
    }

    /* 移动端点击效果 */
    .nav-practice:active {
        background: rgba(22, 160, 133, 0.1);
        border-color: rgba(22, 160, 133, 0.3);
        transform: scale(0.96);
    }
    
    .nav-exam:active {
        background: rgba(30, 136, 229, 0.1);
        border-color: rgba(30, 136, 229, 0.3);
        transform: scale(0.96);
    }
    
    .nav-my-exams:active {
        background: rgba(243, 156, 18, 0.1);
        border-color: rgba(243, 156, 18, 0.3);
        transform: scale(0.96);
    }
    
    .nav-my-practice:active {
        background: rgba(231, 76, 60, 0.1);
        border-color: rgba(231, 76, 60, 0.3);
        transform: scale(0.96);
    }
    
    .nav-wrong-questions:active {
        background: rgba(220, 38, 38, 0.1);
        border-color: rgba(220, 38, 38, 0.3);
        transform: scale(0.96);
    }
    
    .nav-profile:active {
        background: rgba(124, 58, 237, 0.1);
        border-color: rgba(124, 58, 237, 0.3);
        transform: scale(0.96);
    }
}

/* 小屏手机适配 */
@media (max-width: 375px) {
    .nav-menu-grid {
        gap: 8px;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nav-menu-item {
        padding: 16px 8px;
        min-height: 85px;
    }
    
    .nav-menu-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .nav-menu-text {
        font-size: 11px;
        line-height: 1.1;
        font-weight: 500;
    }
    
    /* 进一步优化学生信息卡片 */
    .student-info-card {
        padding: 12px 8px;
    }
    
    .student-avatar {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
    
    .info-label {
        min-width: 50px;
        font-size: 11px;
    }
    
    .info-value {
        font-size: 12px;
    }
    
    /* 优化考试项目 */
    .exam-item {
        padding: 12px 8px;
    }
    
    .exam-title {
        font-size: 15px;
    }
    
    .exam-start-btn {
        min-width: 80px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .exam-status-badge {
        padding: 3px 8px;
        font-size: 10px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 禁用视差效果 */
    .student-info-card, .announcement-section {
        transform: none !important;
    }
    
    .nav-menu-item:active {
        background-color: rgba(30, 136, 229, 0.1);
        transform: scale(0.95);
    }
    
    .announcement-item:active {
        background-color: rgba(30, 136, 229, 0.05);
        transform: translateX(2px);
    }
    
    .student-avatar:active {
        transform: scale(0.95);
    }
    
    /* 增强触摸反馈 */
    .nav-menu-item {
        -webkit-tap-highlight-color: transparent;
    }
    
    .announcement-item {
        -webkit-tap-highlight-color: transparent;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 500px) {
    .student-info-card {
        margin: 8px 16px;
    }
    
    .nav-menu-item {
        padding: 12px;
    }
    
    .nav-menu-icon {
        font-size: 24px;
        margin-bottom: 4px;
    }
}

/* 超小屏设备适配 */
@media (max-width: 320px) {
    .tenant-info-bar {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .student-info-card,
    .current-exams-section,
    .announcement-section,
    .nav-menu-section {
        margin: 8px 4px;
    }
    
    .nav-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .nav-menu-item {
        padding: 14px 6px;
        min-height: 80px;
    }
    
    .nav-menu-icon {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .nav-menu-text {
        font-size: 10px;
        line-height: 1.1;
        font-weight: 500;
    }
}

/* Amis组件移动端覆盖样式 */
@media (max-width: 576px) {
    /* 覆盖Amis的flex布局 */
    .exam-app-page .cxd-Flex {
        display: block !important;
    }
    
    .exam-app-page .cxd-Flex--justify-space-between {
        display: flex !important;
        justify-content: space-between !important;
    }
    
    /* Amis网格组件移动端优化 */
    .exam-app-page .cxd-Grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    .exam-app-page .cxd-Grid-col {
        grid-column: 1 !important;
    }
    
    /* Amis容器组件移动端优化 */
    .exam-app-page .cxd-Container {
        padding: 0 !important;
    }
    
    /* 确保flex项目在移动端正确显示 */
    .exam-app-page .cxd-Flex-item.flex-grow-1 {
        flex-grow: 0 !important;
        width: 100% !important;
    }
    
    .exam-app-page .cxd-Flex-item.flex-shrink-0 {
        flex-shrink: 1 !important;
        width: 100% !important;
        margin-bottom: 12px;
    }
}

/* iOS设备特殊优化 */
@supports (-webkit-appearance: none) {
    .exam-start-btn {
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .logout-btn {
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-menu-item {
        -webkit-tap-highlight-color: transparent;
    }
}

/* 避免iOS中的橡皮筋效果 */
@media (max-width: 576px) {
    body {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .exam-app-container {
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-menu-icon,
    .student-avatar,
    .announcement-header i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
} 